import Vue from 'vue'
import VueRouter from 'vue-router'

// 引入一级路由
import crosswise from '../views/crosswisePage.vue'
import vertical from '../views/verticalPage.vue'
import pie from '../views/piePage.vue'
import huan from '../views/huanPage.vue'
import map from '../views/mapPage.vue'
import zhe from '../views/zhePage.vue'
import home from '../views/home.vue'

Vue.use(VueRouter)

const routes = [
    {
        path: '/',
        component:home
    },
    {
        path: '/crosswise',
        component: crosswise
    },
    {
        path: '/vertical',
        component: vertical
    },
    {
        path: '/pie',
        component: pie
    },
    {
        path: '/huan',
        component: huan
    },
    {
        path: '/map',
        component: map
    },
    {
        path: '/zhe',
        component: zhe
    },
]

const router = new VueRouter({
  routes
})

export default router
